import MyBorrowComp from "containers/loan-billing/my-borrow";
import BorrowManagementComp from "containers/loan-billing/loan-management"
import NewBorrowComp from "containers/loan-billing/new-borrow";
import LoanDetailComp from "containers/loan-billing/loan-detail"

const loanBilling = {
  key:'loan-billing',
  icon: 'bank',
  company: true,
  hideInUrl: ['console-my.huilianyi.com', 'console-sg.huilianyi.com'],
  fpItem: ['loan.flow.disabled'],
  fpValue: [[false, undefined]],
  subMenu:[
    //我的借款单
    {
      key: 'my-borrow',
      url: '/main/loan-billing/my-borrow',
      parent: 'loan-billing',
      components: MyBorrowComp,
      children: {
        //新建借款单
        newBorrow: {
          key: 'new-borrow',
          url: '/main/loan-billing/my-borrow/new-borrow/:formOID/:applicantOID/:applicationOID/:jobId/:ifProxy',
          components: NewBorrowComp,
          parent: 'my-borrow'
        },
        //借款单详情
        loanDetail: {
          key: 'loan-detail',
          url: '/main/loan-billing/my-borrow/loan-detail/:formOID/:loanBillOID/:pageFrom/:applicationOID',
          components: LoanDetailComp,
          parent: 'my-borrow'
        },
        //编辑借款单
        editBorrow: {
          key: 'edit-borrow',
          url: '/main/loan-billing/my-borrow/edit-borrow/:formOID/:loanBillOID/:applicationOID',
          components: NewBorrowComp,
          parent: 'my-borrow'
        },
      }
    },
    {
      key: 'borrow-management',
      url: '/main/loan-billing/borrow-management',
      parent: 'loan-billing',
      components: BorrowManagementComp,
      children: {
        //借款单详情
        loanDetail: {
          key: 'line-loan-detail',
          url: '/main/loan-billing/borrow-management/line-loan-detail/:formOID/:loanBillOID/:backType',
          components: LoanDetailComp,
          parent: 'borrow-management'
        }
      }
    }
  ]
};

export default loanBilling
